#include <iostream>
#include "PollServer.hpp"
#include <memory>



int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        lg.LogMessage(Error, "输入格式：./PollServer serverport\n");
        return usage_err;
    }
    uint16_t serverport = std::stoi(argv[1]);
    std::unique_ptr<PollServer> ssvr = std::make_unique<PollServer>(serverport);
    ssvr->Init();
    ssvr->Loop();
    
    return 0;
}